package top.iforum.bbs.modules.front.controller;

import top.iforum.bbs.modules.posts.service.IPostsService;
import top.iforum.common.mvc.controller.BaseController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.servlet.ModelAndView;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * All rights Reserved, Designed By www.iforum.top
 *
 * @version V1.0
 * @description: 评论控制器
 * @author: 张娜
 * @copyright: 2018 www.iforum.top Inc. All rights reserved.
 */
@RestController("FrontIndexController")
public class IndexController extends BaseController {

    @Autowired
    private IPostsService postsService;


    @RequestMapping(value = "/",method = RequestMethod.GET)
    public ModelAndView index(Model model, HttpServletRequest request, HttpServletResponse response) {
        return new ModelAndView("modules/front/index");
    }






}